<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>职位信息管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="./pages/wk/css/style.css">

	</head>
	<script type="text/javascript">
	function check(rid){
		if(confirm("确定删除？"+rid)){
			window.location="wk/oaRoleAction!delInfo.action?rid="+rid;
		}
	}
	
	</script>

	<body>
	<center>
		<font class="bigFont">职位管理</font>
		<br />
		<a href="wk/oaRoleAction.action">显示职位</a>
		<a href="pages/wk/jsp/oaRoleManage/addOaRole.jsp">添加职位</a>
		<table>
			<tr>
				<th>
					职位编号
				</th>
				<th>
					职位乘积
				</th>
				<th>
					职位名称
				</th>
				<th>
					职位备注
				</th>
			    <th>
					操作
				</th>
			</tr>
			<s:iterator value="oaRoles" var="oaRole">
				<tr>
					<td>
						<s:property value="#oaRole.rid" />
					</td>
					<td>
						<s:property value="#oaRole.rcode" />
					</td>
					<td>
						<s:property value="#oaRole.rname" />
					</td>
					<td>
						<s:property value="#oaRole.rdesc" />
					</td>
					<td>
						<a href="wk/oaRoleAction!getInfo.action?rid=<s:property value="#oaRole.rid" />">修改</a>
						<a href="javascript:check(<s:property value="#oaRole.rid" />)"/>删除</a>
					</td>
				</tr>
			</s:iterator>
		</table>
		</center>
  </body>
</html>
